package com.kob.backend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data//有了这个注解后，会自动写好set,get,tostring函数
@NoArgsConstructor //无参构造函数
@AllArgsConstructor //有参构造函数
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private  String username;
    private  String password;
    private  String photo;
    private Integer rating;
}
